import time
from time import sleep

from selenium import webdriver



browser = webdriver.Edge()
browser.get("https://www.baidu.com")
source = browser.page_source
# print(source)
button = browser.find_element("id", "su")
attribute = button.get_attribute("class")
print(attribute)

name = button.tag_name
print(name)
print(button.text)
sleep(5)